home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmPrintPopupPDM.z
/
XmPrintPopupPDM
Wrap
Text File
|
1998-10-30
|
7KB
|
133 lines
XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM - Send a notification for the PDM to be
popped up
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/Print.h>
XXXXttttEEEEnnnnuuuummmm XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM(
WWWWiiiiddddggggeeeettttpppprrrriiiinnnntttt____sssshhhheeeellllllll,
WWWWiiiiddddggggeeeettttvvvviiiiddddeeeeoooo____ttttrrrraaaannnnssssiiiieeeennnntttt____ffffoooorrrr);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
A convenience function that sends a notification to start a
Print Dialog Manager on behalf of the application,
XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMMhides the details of the X selection
mechanism used to notify the PDM that a new dialog must be
popped up for this application.
XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM sends a selection request to either the
print display of the print shell, or the video display of
the transient_for video widget (depending on the environment
variable _X_P_D_M_D_I_S_P_L_A_Y, which can only takes the value "print"
or "video"), asking for the PDM windows to be popped up on
behalf of the app.
Return right away with status of _X_m_P_D_M__N_O_T_I_F_Y__F_A_I_L(e.g. if
the function couldn't malloc memory for the selection value,
or if _X_P_D_M_D_I_S_P_L_A_Yis not "print" or "video") or with
_X_m_P_D_M__N_O_T_I_F_Y__S_U_C_C_E_S_S, which only means a "message" was sent
out to the PDM specified by _X_P_D_M_S_E_L_E_C_T_I_O_N, not that it's
already up on the screen yet.
In order to know if the PDM is up, or not running, the
application must register a XXXXmmmmNNNNppppddddmmmmNNNNoooottttiiiiffffiiiiccccaaaattttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkkwith
the Print Shell.
XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM puts up an IIIInnnnppppuuuuttttOOOOnnnnllllyyyywindow on top of the
dialog, so that the end user doesn't use the print setup
dialog while the PDM is trying to come up. This window is
automatically removed when the shell is about to call the
callback for the first time.
_p_r_i_n_t__s_h_e_l_l
The Print Shell used for this print job and
context.
_v_i_d_e_o__t_r_a_n_s_i_e_n_t__f_o_r
The video widget dealing with application print
setup.
Page 1 (printed 10/24/98)
XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM((((3333XXXX))))
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
Returns _X_m_P_D_M__N_O_T_I_F_Y__S_U_C_C_E_S_S if the function was able to
send the notification out to the PDM process,
_X_m_P_D_M__N_O_T_I_F_Y__F_A_I_L otherwise.
EEEERRRRRRRROOOORRRRSSSS////WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
Not applicable.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
Example of callback from a Print set up dialog box
"Setup..." button:
PrintSetupCallback(print_dialog...)
/*-------------*/
{
if (XmPrintPopupPDM (pshell, XtParent(print_dialog)) !=
XmPDM_NOTIFY_SUCCESS) {
/* some error dialog */
}
}
Example of XXXXmmmmNNNNppppddddmmmmNNNNoooottttiiiiffffiiiiccccaaaattttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkk from a Print Shell:
pdmNotifyCB(print_shell...)
{
XmPrintShellCallBackStruct * pr_cb = ...
switch (pr_cb->reason) {
case XmCR_PDM_NONE:
/* no PDM available */
PostErrorDialog(...);
break;
case XmCR_PDM_VXAUTH:
/* PDM is not authorized ... */
PostErrorDialog(...);
break;
case XmCR_PDM_UP: the PDM is up and running
/* everything is fine */
break;
default: /* other cases */
}
}
SSSSEEEEEEEE AAAALLLLSSSSOOOO
XXXXmmmmPPPPrrrriiiinnnnttttSSSSeeeettttuuuupppp(3), XXXXmmmmPPPPrrrriiiinnnnttttSSSShhhheeeellllllll(3), XXXXmmmmRRRReeeeddddiiiissssppppllllaaaayyyyWWWWiiiiddddggggeeeetttt(3),
XXXXmmmmPPPPrrrriiiinnnnttttTTTTooooFFFFiiiilllleeee(3)
Page 2 (printed 10/24/98)